home *** CD-ROM | disk | FTP | other *** search
/ Internet Info 1994 March / Internet Info CD-ROM (Walnut Creek) (March 1994).iso / networking / info-service / wais / ir-book-sources / thesauri / makefile < prev    next >
Encoding:
Makefile  |  1993-04-08  |  1.6 KB  |  64 lines

  1. #
  2. # Makefile for thesauri programs
  3. # Written and tested by Christopher Fox 4/25/91
  4. #
  5. # Directives:
  6. #   hiearky      A program to generate a thesaurus hierarchy.  The program 
  7. #                 is executed by typing
  8. #                   hierarky
  9. #                 Input files are requested interactively.
  10. #
  11. #   select        A program to generate statistics about thesaurus terms.
  12. #                 The program is executed by typing
  13. #                   select <direct-file> <inverted-file> <result-file>
  14. #
  15. #   merge         A program to merge two hierachies.  The program is excuted
  16. #                 by typing
  17. #                   merge <invert1> <link1> <invert2> <link2> <result-file>
  18. #
  19. #   all           (default) Make the programs above.
  20. #
  21. #   test_hierarky Test the hierarky program.
  22. #
  23. #   test_select   Test the select program.
  24. #
  25. #   test_merge    Test the merge program.
  26. #
  27. #   regression    Execute a regression test on all programs.
  28. #
  29.  
  30. CFLAGS=-O
  31. LDFLAGS=
  32. LIBS=-lm
  33.  
  34. all:        hierarky merge select
  35.  
  36. hierarky:    hierarky.o
  37.     $(CC) $(CFLAGS) -o hierarky hierarky.o $(LIBS)
  38.  
  39. hierarky.o:    hierarky.c
  40.     $(CC) $(CFLAGS) -c hierarky.c
  41.  
  42. merge:        merge.o
  43.     $(CC) $(CFLAGS) -o merge merge.o $(LIBS)
  44.  
  45. merge.o:    merge.c
  46.     $(CC) $(CFLAGS) -c merge.c
  47.  
  48. select:        select.o
  49.     $(CC) $(CFLAGS) -o select select.o $(LIBS)
  50.  
  51. select.o:    select.c
  52.     $(CC) $(CFLAGS) -c select.c
  53.  
  54. test_select:    select dirfile1 invfile1
  55.     ./select dirfile1 invfile1 result
  56.  
  57. test_merge:    merge invfile1 lnkfile1 invfile2 lnkfile2
  58.     ./merge invfile1 lnkfile1 invfile2 lnkfile2 result
  59.  
  60. test_hierarky:    hierarky
  61.     ./hierarky
  62.  
  63. regression: test_hierarky test_merge test_select
  64.